 <script type="text/javascript">
 function changeLang1(str)
 {
	 if (str==""){
			document.getElementById("txtHint").innerHTML="";
			return;
		} 
		if (window.XMLHttpRequest){// code for IE7+, Firefox, Chrome, Opera, Safari
			xmlhttp=new XMLHttpRequest();
		}else{// code for IE6, IE5
			xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
		xmlhttp.onreadystatechange=function(){
											  if (xmlhttp.readyState==4 && xmlhttp.status==200){
											    	document.getElementById("wrapper").innerHTML=xmlhttp.responseText;
											  }
										  }
		xmlhttp.open("GET","ajax/changeLang.php?lang="+str,true);
		xmlhttp.send();
 	
 }
function changeLang(str)
{
	window.open("ajax/changeLang.php?lang="+str,"_self");
	
}

</script>
 
 
 <div class="logo"><a href="#" href="index.php"><img src="images/logo.png" alt="" /></a></div>
        <div class="lang">
        	<a href="#"  onclick="changeLang('KR')" ><img src="images/kr.png" alt="" /></a>
            <a href="#"  onclick="changeLang('VN')" ><img src="images/vn.png" alt="" /></a>
        	<a href="#"  onclick="changeLang('EN')"><img src="images/en.png" alt="" /></a>
        </div>
  <div class="clear"></div>

         <div class="login1" >
        <?php 
    	$myemail=$_COOKIE["tkemail"];
    	if($myemail!=''){
	    	$_SESSION['tkemail']=$_COOKIE["tkemail"];
		    $_SESSION['tkemailrestore']=$_COOKIE["tkemailrestore"];
		    $_SESSION['role']=$_COOKIE["role"];
    	}
    	
        if($_SESSION['tkemail']!=''){?>
        	<?=$hi?> <a href="#" style="font-weight: bold;"  onclick="changePage('profile')" ><?=$_SESSION['tkemail']?></a> , <a style="font-weight: bold;" href="login_handle.php?Dangxuat=on" > <?=$logout?></a>
        <?php }else{?>
        	<a href="#" style="font-weight: bold;" onclick="changePage('entry')" ><?=$login?></a> / <a href="#" style="font-weight: bold;"  onclick="changePage('signup')"><?=$signup?></a>
        <?php }?>
        </div>
        